package com.boot.web.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装菜单树结构
 * @author 【zhouJie】
 */
@Data
public class MenuPowerVO {

    //主键ID
    private Integer id;

    //类型(0=菜单, 1=按钮)
    private Integer type;

    //层级 1  2  3  4  5  6 ...
    private Integer level;

    //菜单标题
    private String title;

    //菜单/权限名称
    private String name;

    //上级ID
    private Integer parentId;

    //页面路径
    private String path;

    //按钮权限
    private Integer buttonPowerId;
    private String buttonPowerName;

    //图标
    private String icon;

    //组件
    private String component;

    //是否始终显示
    private Boolean showAlways;

    // 下级
    private List<MenuPowerVO> children;

    //节点是否展开
    private Boolean expand = true;

    //节点是否勾选
    private Boolean checked = false;

    //节点是否选中
    private Boolean selected = false;

    //作用描述
    private String info;

}
